package com.design.patterns.list.composite;

/**
 * Leaf 叶子结点
 * @author Wangzhiwen
 */
public class Department extends OrganizationComponent {

    public Department(String name, String desc) {
        super(name, desc);
    }

    @Override
    protected void operation() {
        System.out.println("Department 节点内容 ------------- ");
        System.out.println(getName() + " " + getDesc());
    }
}
